The undefined closed reason according to the API is 4, but we were
potentially returning an unsupported value (0).
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3907>
case MessageTray.NotificationDestroyedReason.SOURCE_CLOSED:
notificationClosedReason = NotificationClosedReason.APP_CLOSED;
break;
+ default:
+ notificationClosedReason = NotificationClosedReason.UNDEFINED;
+ break;
}
this._emitNotificationClosed(id, notificationClosedReason);
});